package com.langhuan.config

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
import org.mybatis.spring.annotation.MapperScan
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
@MapperScan("com.langhuan.model.mapper")
class MybatisPlusConfig {

    /**
     * 分页插件
     */
    @Bean
    fun paginationInterceptor(): PaginationInnerInterceptor {
        return PaginationInnerInterceptor()
    }
}
